Monday, February 25, 2008

How to Install ffmpeg?

Hi Folks,

I have spent hell three hours on finding the quick ffmpeg installer, and on my system YUM is also not working
I guess this similar kind of problem will be there with you also. Following are the easy stpes to install FFMPEG on your sever
My System is RedHat EL 4.

FFMPEG installation for RedHat EL 4 - i386
This installation will run probably for all i386 systems.

# rpm -Uvh --nodeps ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el4/en/i386/RPMS.dag/ffmpeg-0.4.9-0.9.20070530.el4.rf.i386.rpm
# rpm -Uvh --nodeps ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/libogg0-1.1.3-7.el4.at.i386.rpm
# rpm -Uvh --nodeps ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el4/en/i386/dag/RPMS/gsm-1.0.10-6.el4.rf.i386.rpm
# rpm -Uvh --nodeps ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/libmp3lame0-3.97-16.el4.i386.rpm
# rpm -Uvh --nodeps ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/libvorbis0-1.1.2-5.el4.at.i386.rpm
# rpm -Uvh --nodeps ftp://ftp.pbone.net/mirror/atrpms.net/el4-x86_64/atrpms/stable/libvorbisenc2-1.1.2-5.el4.at.i386.rpm
# rpm -Uvh --nodeps ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el4/en/i386/RPMS.dag/xvidcore-1.1.3-1.el4.rf.i386.rpm
# rpm -Uvh --nodeps ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el4/en/i386/dag/RPMS/x264-0.0.0-0.4.20070529.el4.rf.i386.rpm
# rpm -Uvh --nodeps ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/libfaac0-1.25-2.el4.at.i386.rpm
# rpm -Uvh --nodeps ftp://ftp.pbone.net/mirror/atrpms.net/el4-x86_64/atrpms/stable/faad2-2.5-7.el4.at.i386.rpm

Get sample MPEG file
wget http://www.fileformat.info/format/mpeg/sample/031699cb978244b8a3adf1e81cb2ac7c/FORM.MPG

Convert MPEG from FLV
ffmpeg -i FORM.MPG -ar 22050 -ab 32 -f flv -s 320x240 -aspect 4:3 -y

Convert IMAGE From FLV
ffmpeg -i FORM.flv -deinterlace -an -ss 1 -t 00:00:01 -r 1 -y -s 320×240 -vcodec mjpeg -f mjpeg form.jpg

RPMS Taken From
http://rpm.pbone.net/

ffmpeg help Articles
http://ffmpeg.mplayerhq.hu/faq.html
http://www.luar.com.hk/blog/?p=670

7 comments:

Anonymous said...

Vicky,

You have done a great thing by posting this info. FFMPEG has been quite an issue for many. Recently in one of my projects we were facing this issue wherein we had to convert video files to JPG using FFMPEG. But FFMPEG does not support conversion (or takes inputs) for FLV and SWF files. I hope the future versions of FFMPEG would be compliant enough to support all kinds of video files.

Keep posting!!!!!

Anonymous said...

We have released a new script that does ffmpeg, ffmpeg-php install. It covers everything that is required for the youtube clones and is made user friendly.

http://admin-ahead.com/software_development.html

Success stories @:

http://www.webhostingtalk.com/showthread.php?t=685218

Hope you will have great use of it.

-T

Unknown said...

Thank----YOU!

This was the only ffmpeg tutorial that actually worked the way i wanted it to...

Anonymous said...

I searched all over the web for "Installing ffmpeg" and got absolutely nothing.
None of the tutorials worked for me but this one!!!

Great job, I wish everyone was like you!!!

Nitin Iyer said...

Hi Vikrant!
It is a very helpful article pposted by you. Thanks for the same.
But while downloading the RPMs a few of the commands didnt work. For example: the number 2 command returns me Transfer Failed. Unknown or unexpected error.
Can you tell me any other alternative.

Unknown said...

I have the same problem than nitin lyer...

Somebody has a solution ?

Many thanks

Unknown said...

Hey Check this!

http://pankajdangi.com/2010/10/how-to-install-ffmpeg-on-linux-server/